package com.bobaini.springcloud.repository;

import com.bobaini.springcloud.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * ClassName: HospitalRepository
 * author: bob.ly
 * Version: 1.0.0
 * DateTime: 2021/04/07-21:30:00
 * Description: TODO
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {
    /**
     * SpringData提供了对DB的支持, 只要名字规范就可以
     * find read get开头都可以
     *
     * @param hoscode
     * @return
     */
    Hospital getHospitalByHoscode(String hoscode);
}
